# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=bcachefs-tools
pkgver=1.3.3
pkgrel=0
pkgdesc="userspace tools for bcachefs"
url="https://bcachefs.org/"
arch="all"
options="!check" # no test
license="GPL-2-or-later"
makedepends="
	cargo
	clang17-dev
	coreutils
	libaio-dev
	libsodium-dev
	llvm17-dev
	eudev-dev
	util-linux-dev
	keyutils-dev
	lz4-dev
	userspace-rcu-dev
	zstd-dev
	pkgconf
	zlib
	"
subpackages="$pkgname-doc"
source="https://evilpiepirate.org/git/bcachefs-tools.git/snapshot/bcachefs-tools-1.3.3.tar.zst"

build() {
	make PREFIX=/usr
}

package() {
	#make DESTDIR=$pkgdir PREFIX=/usr ROOT_SBINDIR="/sbin" install
	make DESTDIR=$pkgdir PREFIX=/usr ROOT_SBINDIR="/usr/sbin" install
}

sha512sums="
400d66342d53dac61faf8772ecb11339a33ad451698813720b2f9992901e2f19a6adb339ad4de6a2a012d64ae91d6554672186619082f7039b7fc9f837ad6fd0  bcachefs-tools-1.3.3.tar.zst
"
